//
//  HHYHeader.h
//  大股票
//
//  Created by apple on 2019/8/14.
//  Copyright © 2019 apple. All rights reserved.
//

#ifndef HHYHeader_h
#define HHYHeader_h

#define hhy_is_iPhoneX \
({BOOL hhy_is_iPhoneX = NO;\
if (@available(iOS 11.0, *)) {\
hhy_is_iPhoneX = [[UIApplication sharedApplication] delegate].window.safeAreaInsets.bottom > 0.0;\
}\
(hhy_is_iPhoneX);})

//状态栏高度
#define hhy_kStatusBarHeight     (hhy_is_iPhoneX ? 44.f : 20.f)
// 导航高度
//#define kNavigationBarHeight 44.f
// Tabbar高度.   49 + 34 = 83
#define hhy_kTabbarHeight        (hhy_is_iPhoneX ? 83.f : 49.f)
// Tabbar安全区域底部间隙
#define hhy_kTabbarSafeBottomMargin  (hhy_is_iPhoneX ? 34.f : 0.f)
// 状态栏和导航高度
#define hhy_kStatusBarAndNavigationBarHeight  (hhy_is_iPhoneX ? 88.f : 64.f)


#define hhy_kScreenWidth     MIN(hhy_kScreenWidthOriginal, hhy_kScreenHeightOriginal)
#define hhy_kScreenHeight    MAX(hhy_kScreenWidthOriginal, hhy_kScreenHeightOriginal)
#define hhy_kScreenWidthOriginal     [UIScreen mainScreen].bounds.size.width
#define hhy_kScreenHeightOriginal     [UIScreen mainScreen].bounds.size.height


#define rgba(R,G,B,A) [UIColor colorWithRed:R/255.0 green:G/255.0 blue:B/255.0 alpha:A]

#define hhy_kFont(value)        [UIFont systemFontOfSize:value]

#define kJuHeAppKey @"5fea865e889d930275c8c14eae4578eb"

#import <Masonry/Masonry.h>
#import <MBProgressHUD/MBProgressHUD.h>
#import "UIImage+XLExtension.h"
#import "HHYUtils.h"
#import "UIView+XLExtension.h"
#import "HHYWebUtil.h"
#endif /* HHYHeader_h */
